import csv
import random
with open('week2Opdracht3.csv', 'w', newline='') as fp:
    a = csv.writer(fp, delimiter=',')
    a.writerow( ('OPLOPEND','RANDOM') )
    for i in range(100):
           x=random.randint(1,10001)
           row = [i,x]
           a.writerow(row)

#PS C:\Users\Navin> import-csv "D:\Documents\Komodo\week2Opdracht3.csv" | SELECT random